package bb.lanxing.lib.devices.ble.ble.characteristic;

import java.io.Serializable;
import kotlin.Metadata;
import kotlin.jvm.internal.DefaultConstructorMarker;

public enum SensorLocation implements Serializable {
    Other(0),
    TopOfShoe(1),
    InShoe(2),
    Hip(3),
    FrontWheel(4),
    LeftCrank(5),
    RightCrank(6),
    LeftPedal(7),
    RightPedal(8),
    FrontHub(9),
    RearDropout(10),
    ChainStay(11),
    RearWheel(12),
    RearHub(13),
    Chest(14),
    Spider(15),
    ChainRing(16),
    Reserved(17);
    
    public static final Companion Companion = new Companion(null);
    private final int value;

    SensorLocation(int i) {
        this.value = i;
    }

    public final int getValue() {
        return this.value;
    }


    public static final class Companion {
        public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
            this();
        }

        private Companion() {
        }

        public SensorLocation from(Integer num) {
            SensorLocation[] values;
            for (SensorLocation sensorLocation : SensorLocation.values()) {
                if (num != null && sensorLocation.getValue() == num) {
                    return sensorLocation;
                }
            }
            return null;
        }
    }
}
